import request from '@/utils/request'

// 查询用水记录列表
export function listDrinkLog(query) {
  return request({
    url: '/client/drinkLog/list',
    method: 'get',
    params: query
  })
}

// 查询用水记录详细
export function getDrinkLog(id) {
  return request({
    url: '/client/drinkLog/' + id,
    method: 'get'
  })
}

// 新增用水记录
export function addDrinkLog(data) {
  return request({
    url: '/client/drinkLog',
    method: 'post',
    data: data
  })
}

// 修改用水记录
export function updateDrinkLog(data) {
  return request({
    url: '/client/drinkLog',
    method: 'put',
    data: data
  })
}

// 删除用水记录
export function delDrinkLog(id) {
  return request({
    url: '/client/drinkLog/' + id,
    method: 'delete'
  })
}
